package cn.edu.lcu.cs.designpattern.state.thread;

/**
 * 新建状态
 */
public class Newly extends ThreadState {
    public Newly() {
        stateName = "新建状态";
        System.out.println(stateName);
    }

    public void start(ThreadContext context) {
        System.out.print("调用start()-->");
        context.setState(new Runnable());
    }
}
